import request from '@/utils/request'

// 查询延期借据列表
export function listDeferred(query) {
    return request({
        url: '/business/deferred/list',
        method: 'get',
        params: query
    })
}

// 查询延期借据详细
export function getDeferred(id) {
    return request({
        url: '/business/deferred/' + id,
        method: 'get'
    })
}

// 新增延期借据
export function addDeferred(data) {
    return request({
        url: '/business/deferred',
        method: 'post',
        data: data
    })
}

// 修改延期借据
export function updateDeferred(data) {
    return request({
        url: '/business/deferred',
        method: 'put',
        data: data
    })
}

// 删除延期借据
export function delDeferred(id) {
    return request({
        url: '/business/deferred/' + id,
        method: 'delete'
    })
}

// 导出延期借据
export function exportDeferred(query) {
    return request({
        url: '/business/deferred/export',
        method: 'get',
        params: query
    })
}
